package design.templateMethod.helingang.abClass;

import design.templateMethod.helingang.MaintenanceHandler;

/**
 * @program: LearningDemo
 * @description: 保养流程顶级抽象类
 * @author: Lenny
 * @create: 2019-08-19 21:54
 **/
public abstract class Maintenance implements MaintenanceHandler {
    public void maintenance(){
        reservation();
        check();
        fixed();
        wash();
    }
    public  final void reservation() {
        System.out.println("预约门店");
    }

    /**
     * 检查方法
    * @Description: 保养车之前都要先进行检查
    * @Author: Lenny
    * @Date: 2019/8/19
    */
    @Override
    public  abstract void check();
    @Override
    public  void fixed(){
        System.out.println("Traditional 维修");
    }
    @Override
    public abstract void  wash();


}
